package com.yonyou.brigade.basic_init.service;

import com.alibaba.fastjson.JSONObject;
import com.yonyou.ybzboot.uc.dto.UcUserDto;

import java.util.List;

/**
 * 用户中心服务
 *
 * @author admin
 */
public interface IUserCenterService {

    List<UcUserDto> getUcUserDtoByOrg(String tenant, String orgPk);

    UcUserDto getCompleteUcUserDtoByPhone(String phone, String tenant);

    public UcUserDto listCompleteUcUserByUserMobiles4admin(String phone, String tenant);

    /**
     * 根据userid和租户ID获取用户中心的完整用户信息
     *
     * @param userIdList
     * @param tenant
     * @return
     */
    List<UcUserDto> getCompleteUcUserDtoByUserid(List<String> userIdList, String tenant);

    UcUserDto getCompleteUcUserDtoByPersonCode(String personCode, String tenant);

    /**
     * 根据personid获取用户中心的完整用户信息
     *
     * @param personIds
     * @param tenantId
     * @return
     */
    List<UcUserDto> getCompleteUcUserByPersonIds(List<String> personIds, String tenantId);

    /**
     * 根据租户ID查询租户信息
     *
     * @param tenantId 租户ID
     * @return JSONObject
     */
    JSONObject getTenantInfoById(String tenantId);

    /**
     * 根据租户ID查询此租户下的人员信息
     * @param tenantId 租户ID
     * @return
     */
    List<UcUserDto> getUcUsersByTenantId(String tenantId);
}
